package net.xuele.learn.spring;

import net.xuele.learn.spring.aop.AopTarget;
import org.springframework.context.support.FileSystemXmlApplicationContext;

/**
 * @Author: yubo
 * @date: 14:59 2020/6/8
 * @Description: 类描述
 */

public class spring {

    public static void main(String[] args) throws InterruptedException {
        FileSystemXmlApplicationContext context = new FileSystemXmlApplicationContext("classpath:application-aop.xml");


        AopTarget target = (AopTarget)context.getBean("target");
        Thread.sleep(2000);
        System.out.println("------------------");
        Thread.sleep(5000);
        target.target();
    }
}
